<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
    <style>
        table{border-collapse:collapse;}
        table,th, td{border: 1px solid black;padding: 5px;text-align: center;}
    </style>
</head>
<body>
<br/>
<br/>
<br/>
<br/>
<table class="table table-bordered">
    <thead>
    <th width="5%">编号</th>
    <th width="5%">姓名</th>
    <th width="5%">密码</th>
    <th width="5%">手机号</th>
    <th width="5%">创建时间</th>

    <th width="5%">操作</th>
    </thead>
    <tbody>
    <tr th:each="user : ${users}">
        <td th:text="${user.userId}"></td>
        <td th:text="${user.userName}"></td>
        <td th:text="${user.userPassword}"></td>
        <td th:text="${user.userTelephone}"></td>
        <td th:text="${user.userCreatedate}"></td>

        <td>
            <a th:href="@{/user/edit(id=${user.userId})}">编辑</a> &nbsp;&nbsp;
            <a th:href="@{/user/del/{id}(id=${user.userId})}">删除</a>
        </td>
    </tr>
    </tbody>
</table>
</body>
</html>
